package cn.le.poster.element;

import cn.le.poster.AbstractPoster;
import cn.le.poster.entity.Size;

import java.awt.*;
import java.awt.image.BufferedImage;

/**
 * 画布
 */
public class Canvas extends AbstractPoster {

    private BufferedImage image;

    private Color color;

    public Canvas(int w, int h, Color color){
        this.color = color;
        this.size = new Size(w,h);
    }

    public Canvas(int w, int h, BufferedImage image){
        this.size = new Size(w,h);
        this.image = image;
    }

    public BufferedImage getImage() {
        return image;
    }

    public Color getColor() {
        return color;
    }
}
